<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head profile="http://gmpg.org/xfn/11">
	<?php 
	$this->headLink()->appendStylesheet($this->baseUrl().'/public/templates/quay/layout.css')
                        ->appendStylesheet($this->baseUrl().'/public/templates/quay/addons.css')
                        ->appendStylesheet($this->baseUrl().'/public/templates/quay/modules_styles.css')
                        ->appendStylesheet($this->baseUrl().'/public/templates/quay/template.css')
                        ->appendStylesheet($this->baseUrl().'/public/templates/quay/suckerfish.css')
                        ->appendStylesheet($this->baseUrl().'/public/templates/quay/gk_stuff.css')
                        ->appendStylesheet($this->baseUrl().'/public/templates/quay/jomsocial.css')
                        ->appendStylesheet($this->baseUrl().'/public/templates/quay/style1.css')
                        ->appendStylesheet($this->baseUrl().'/public/templates/quay/slider.css');
	echo $this->headLink();	
	echo $this->headMeta();
	$this->headScript()->appendFile($this->baseUrl().'/public/js/jquery-1.4min.js', 'text/javascript')
                            ->appendFile($this->baseUrl().'/public/js/nhk_ajax.js', 'text/javascript')
                            ->appendFile($this->baseUrl().'/public/js/easyslider1.5/js/easySlider1.5.js')
                            ->appendFile($this->baseUrl().'/public/templates/quay/mootools.js', 'text/javascript')
                            ->appendFile($this->baseUrl().'/public/templates/quay/engine_compress.js', 'text/javascript')//suot menu top
                            ->appendFile($this->baseUrl().'/public/templates/quay/importer.php', 'text/javascript')//suot menu top
                            ->appendFile($this->baseUrl().'/public/templates/quay/menu.php', 'text/javascript')//menu tren cung    					
                                  ;   
	$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
	$this->headMeta()->appendName('google-site-verification', "cE1ukf8IRD99jfUJVSHvqgEQhUasXudjUIvZ7CuRP8Q");
	echo $this->headTitle();
        echo $this->headMeta();	
        echo $this->headScript();
	$game_info = $this->arrParam['game_info'];
	$game_id = $game_info['id'];
	 
	if ($game_info['sys_image']) {
		echo '<meta property=og:image content="'.UPLOADED_URL.'/'.$game_info['source_image'].'"/>';
		echo '<link rel="image_src" href="'.UPLOADED_URL.'/'.$game_info['source_image'].'" />';
	}else{
		echo '<meta property=og:image content="'.$game_info['source_image'].'"/>';
		echo '<link rel="image_src" href="'.$game_info['source_image'].'" />';		
	}
	?>	
	
	<link rel="icon" href="<?php echo SITE_URL;?>/favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="<?php echo SITE_URL;?>/favicon.ico" type="image/x-icon" title ="<?php echo SITE_TITLE;?>"/>
	<meta property="og:site_name" content="<?php echo SITE_TITLE;?>"/>
	
	
	<style type="text/css">
		.template_width { width:1024px; }
		#gk_wrapper     { width:1024px; }
		#gk_mainbody    { margin: 0px 26px 0px 26px;padding:0;border-width:0;}
		#gk_left        { width:0px; }
		#gk_right       { width:300px;margin: -510px 10px 10px 0px;padding:0;border-width:0; }
		#left_one       { width:0px; }
		#left_two       { width:100%; }
		#right_one      { width:124px; height: 605px; margin: 0px 12px 0px 0px;padding:0;border-width:0; }
		#right_two      { width:164px; height: 605px; margin:0;padding:0;border-width:0; }
		#inset_left     { width:0px;margin: 0px 12px 0px 0px;padding:0;border-width:0; }
		#inset_right    { width:170px;margin: 0px 0px 0px 12px;padding:0;border-width:0; }
		#gk_content     { width: 635px;margin: 0px 10px;padding:0;border-width:0; }
		#gk_current     { width:392px;margin: 0px 0px 12px 0px;padding:0;border-width:0; }
		#gk_bottom      { margin: 20px 26px 0px 26px;padding:0;border-width:0; }
		#gk_bottom1     { margin:0;padding:0;border-width: 1px 0px 0px 0px; }
		#gk_bottom2     { margin:0;padding:0;border-width:0; }
		#gk_footer     	{ margin: 0px 29px 120px 29px;padding:0;border-width:0; }
		#play-game-container {width: 635px; height: 470px; padding:0;border-width:0; clear: both; margin: 0px 10px 40px;}
                #play-adv-container {width: 635px; height: 470px; padding:0;border-width:0; clear: both; margin: 0px 10px 40px;}
		#title-game-play {
			margin: 0 0 10 0 !important;
		}	
		body {
			font-family: Arial, Helvetica, sans-serif;
		}

		div.moduletable h3, 
		div.moduletable_menu h3, 
		div.moduletable_text h3, 
		div.moduletable_ver1 h3, 
		div.moduletable_ver2 h3, 
		div.moduletable_ver3 h3, 
		#community-wrap .app-box-title,
		h1.componentheading, .componentheading, 
		a#joinButton {
			font-family:"Myriad Pro", Arial, sans-serif;
		}	
                body{font-size:62.5%;}
                .count_down{
                    position: relative; border: 0px solid #ccc
                }
                .show_adv{
                    margin-top: 100px;
                    margin-left: 150px;
                }
	</style>
	<script type="text/javascript">
            var expanded = 0;
            function expand(){
                    if(expanded==0){
                            jQuery("div#button-expand").html("Shrink");
                            expanded = 1;
                            jQuery("#play-game-container").animate({
                                width: "950",
                                height: "530",
                                opacity: 1
                            }, 500 );
                            jQuery("#gk_right").animate({
                                    marginTop: "0",
                            opacity: 1,
                            }, 500 );
                    }else{
                            jQuery("div#button-expand").html("Expand");
                            expanded = 0;
                            jQuery("#play-game-container").animate({
                                width: "635",
                                height: "470",
                                opacity: 1
                            }, 500 );
                            jQuery("#gk_right").animate({
                                marginTop: "-510",
                                opacity: 1
                            }, 500 );
                    }
            }
            
            
        </script>
        
        <script type="text/javascript">

		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', 'UA-25243536-1']);
		  _gaq.push(['_setDomainName', 'gameangrybirds.com']);
		  _gaq.push(['_trackPageview']);
		
		  (function() {
		    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();
		
		</script>
        <script>(function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id)) {return;}
            js = d.createElement(s); js.id = id;
            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));
        </script>
        
</head>
<body>
	<div id="gk_wrapper">
		<div id="gk_header">
			<div class="menu_m">
				<div class="menu_l">
					<div class="menu_r clearfix">
						<a href="<?php echo SITE_URL;?>" id="logo" title ="<?php echo SITE_TITLE;?>">
							<img src="<?php echo $this->baseUrl().'/public/templates/quay/images/logo.jpg';?>" title ="<?php echo SITE_TITLE;?>"  alt="<?php echo SITE_TITLE;?>" height="50" width="280"/>
						</a>
						<?php echo $this->blkTopMenu(0);?>
					</div>
				</div>
			</div>
		</div>
		<div id="top_adv_play" style="width: 100%; margin-top: -10px; margin-bottom: 10px; padding-left: 148px;">
			<div  id="sub_top_adv_play" style="width: 728px;">
				<script type="text/javascript"><!--
				google_ad_client = "pub-2402881846703504";
				/* 728x90, created 5/11/11 */
				google_ad_slot = "2577774672";
				google_ad_width = 728;
				google_ad_height = 90;
				//-->
				</script>
				<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</div>
		</div>
		<!-- Khung main chinh -->
		<div id="gk_mainbody" class="right_column clearfix">
			<!-- corner top main -->
			<div class="corners">
				<div class="corner_tl">
				</div>
				<div class="corner_tr">
				</div>
			</div>
			<!-- Top addon -->
			<div class="top_addons">
				<div class="top_addons_tl">
					<div class="top_addons_tr clearfix">
						<div id="breadcrumb">
							<div class="gk_js_stats_main" id="gk_js_stats1">
								<div class="gk_js_breadcrumbs">
									<a href="<?php echo SITE_URL;?>" title ="<?php echo SITE_TITLE;?>" class="gk_js_groupname"><?php echo SITE_TITLE;?></a>
									<a href="<?php echo SITE_URL.'/cat.html';?>" title="<?php echo SITE_TITLE;?>" class="gk_js_viewgroups">View all categories</a>
								</div>
								<?php echo $this->blkCountUser();?>
							</div>
						</div>
						<div id="search">
							<form action=<?php echo $this->baseUrl().'/front/games/search/';?> method="get">
                                                            <div class="search">
                                                                <input name="kw" id="mod_search_searchword" maxlength="20" alt="Search" class="inputbox" type="text" size="20" value="search..." onblur="if(this.value==&#39;&#39;) this.value=&#39;search...&#39;;" onfocus="if(this.value==&#39;search...&#39;) this.value=&#39;&#39;;"/>	
                                                            </div>
							</form>
						</div>
					</div>
				</div>
			</div>
			<!-- Main -->
			<div id="gk_mainbody_wrap" class="clearfix">				
                                <div id="play-game-container">
					<?php echo $this->blkPlay();?>
				</div>
				
				<div style="margin: 0; padding: 0; width: 100%; height: auto;">					
					<!-- cot ben trai -->
						<div id="gk_content" class="clearfix">
							
							<div style="float: left;">								
                                                            <a onclick="postLike(<?php echo $game_id;?>,1); return false;" href="#"><div role="button" id="button-like" class="d-q-p j-e j-e-Y hqnAId" tabindex="0">Like</div></a>
                                                            <a onclick="postLike(<?php echo $game_id;?>,0); return false;"  href="#"><div role="button" id="button-dislike" class="d-q-p j-e j-e-Y hqnAId" tabindex="0">Dislike</div></a>						
                                                            <a onclick="postFavourite(<?php echo $game_id;?>); return false;"  href="#"><div role="button" id="button-dislike" class="d-q-p j-e j-e-Y hqnAId" tabindex="0">Favourite</div></a>						
							</div>
							<div style="float: left; margin-left: 7px; padding-top: 2px;">
								<!-- Place this tag where you want the +1 button to render -->
								<g:plusone></g:plusone>
								
								<!-- Place this tag after the last plusone tag -->
								<script type="text/javascript">
								  (function() {
								    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
								    po.src = 'https://apis.google.com/js/plusone.js';
								    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
								  })();
								</script>
							</div>
							<div style="float: right; display: none;font-size: 1.8333em; font-weight: bold;color: #333;">							
								<?php echo $game_info['playcount'];?>
							</div>
							<div id="div-show-like-dislike" style="float: right; margin-left: 30px; width: 165px; padding-bottom: 0; min-height: 40px;">	
							</div>							
							<div id="content_top" class="clear">
								<div class="module_wrap clear">
									<?php echo $this->layout()->content;?>	
								</div>
							</div>			
						</div>
					<!-- het cot ben phai -->
					<!-- cot ben phai -->
					<div id="gk_right" class="column">						
						<div id="gk_right_wrap">
							<div id="right_col" class="clearfix">
								<div id="right_one">
									<SCRIPT language="Javascript">
                                                                        var cpmstar_rnd=Math.round(Math.random()*999999);
                                                                        var cpmstar_pid=27503;
                                                                        document.writeln("<SCR"+"IPT language='Javascript' src='http://server.cpmstar.com/view.aspx?poolid="+cpmstar_pid+"&script=1&rnd="+cpmstar_rnd+"'></SCR"+"IPT>");
                                                                        </SCRIPT>

								</div>
								<!--<div id="right_one">
									<div class="moduletable">
										<div class="gk_round_t">
											<div class="gk_round_tl"></div>
											<div class="gk_round_tr"></div>
										</div>
				
										<div class="gk_round_m">
											<div class="gk_round_ml">						
												<h3><span><span class="first-word">Foto</span></span></h3>
												<div class="moduletable_content clearfix">
													<div class="gk_npro_mainwrap" id="gk_npro-newspro129" style="width: 92px;">
														<div class="gk_npro_full" style="width: 92px;float: left;">
															<div class="gk_npro_full_scroll1" style="width: 92px;">
																<div class="gk_npro_full_tablewrap" style="width: 92px;">
																	<table class="gk_npro_table" style="width: 92px;">
																		<tbody>
																			<tr valign="top">
																				<td style="width: 100%;padding: 0;"> 			
																					<div><a href="#"><img class="gk_npro_image_static i_center" src="<?php echo $this->baseUrl();?>/uploads/images/stories.demo.news7.jpg" alt="News image" style="width:92px;height:72px;margin: 9px 0 10px;"></a></div><a class="readon readon_class p_center" href="#">Â» View</a>	 
																				</td>		
																			</tr>
																			<tr valign="top">
																				<td style="width: 100%;padding: 0;"> 			
																					<div><a href="#"><img class="gk_npro_image_static i_center" src="<?php echo $this->baseUrl();?>/uploads/images/stories.demo.news8.jpg" alt="News image" style="width:92px;height:72px;margin: 9px 0 10px;"></a></div><a class="readon readon_class p_center" href="#">Â» View</a>	 
																				</td>		
																			</tr>
																			<tr valign="top">
																				<td style="width: 100%;padding: 0;"> 			
																					<div><a href="#"><img class="gk_npro_image_static i_center" src="<?php echo $this->baseUrl();?>/uploads/images/stories.demo.news6.jpg" alt="News image" style="width:92px;height:72px;margin: 9px 0 10px;"></a></div><a class="readon readon_class p_center" href="#">Â» View</a>	 
																				</td>		
																			</tr>
																			<tr valign="top">
																				<td style="width: 100%;padding: 0;"> 			
																					<div><a href="#"><img class="gk_npro_image_static i_center" src="<?php echo $this->baseUrl();?>/uploads/images/stories.demo.img15.jpg" alt="News image" style="width:92px;height:72px;margin: 9px 0 10px;"></a></div><a class="readon readon_class p_center" href="#">Â» View</a>	 
																				</td>		
																			</tr>	
																		</tbody>
																	</table>			
																</div>
															</div>
														</div>
													</div>
																			
												</div>
											</div>
										</div>
				
										<div class="gk_round_b">
											<div class="gk_round_bl"></div>
											<div class="gk_round_br"></div>
										</div>
									</div>
								</div>
						
								-->
								<div id="right_two">
									
<script type="text/javascript"><!--
google_ad_client = "pub-2402881846703504";
/* 160x600, created 3/22/11 */
google_ad_slot = "6487689474";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
								</div>
							</div>
							<div id="right_bottom" class="clear">
								<?php //echo $this->blkNewestNews();?>	
								<div style="margin: 0px 0px 10px 0px; padding: 0;">
									<script type="text/javascript"><!--
									google_ad_client = "pub-2402881846703504";
									/* 300x250, created 7/6/11 */
									google_ad_slot = "9050850581";
									google_ad_width = 300;
									google_ad_height = 250;
									//-->
									</script>
									<script type="text/javascript"
									src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
									</script>
								</div>
								<?php 
								echo $this->blkLikeBox(300);
								echo $this->blkListTopGame(10);								
								?>							
								
							</div>
						</div>
					</div>
					<!-- het cot ben phai -->
				</div>
			</div>
			<!-- het Main -->
			
                        <!-- Corner botton main -->
			<div class="corners cbottom">
				<div class="corner_bl">
				</div>
				<div class="corner_br">
				</div>
			</div>
		</div>
		
		<div style="height: 10px;"></div>
		
		<?php echo $this->blkBottom();?>					
	</div>
	<script type="text/javascript">
		jQuery(document).ready(function() {
			showLike("<?php echo $game_id;?>");
		});
	</script>
</body>
</html>
